//
//  NSDate+Category.h
//  YLB
//
//  Created by Zoo Chow on 19/02/2017.
//  Copyright © 2017 Zoo. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDate (Category)

+ (NSDate*)convertDateByString:(NSString*)dateString;
+ (NSString*)convertDateToDateString:(NSDate*)date;
+ (NSString*)convertDateToDayOfDateString:(NSDate*)date;
+ (NSString*)convertDateToDescription:(NSDate*)srcDate;
+ (NSString*)convertDateStringToDescription:(NSString*)dateString;
+ (NSDateComponents*)convertDateToComponents:(NSDate*)date;
+ (NSString*)countDownFromDate:(NSDate*)fromDate toDate:(NSDate*)toDate;
+ (NSDate*)getNextHour:(NSDate*)date;
+ (NSDate*)getNextHourBefore20Minute:(NSDate*)date;
+ (NSInteger)daysOfMonth:(NSInteger)month;
+ (NSString*)calculateHourAndMinutesInMinutes:(NSInteger)minutes;
- (NSDate*)convertGreenwichMeanTime;
+ (NSDate*)convertLocalGMT:(NSString*)dateString;
+ (NSDate*)convertDateGMTByString:(NSString*)dateString;
+ (NSString*)convertGMTDateToString:(NSDate*)date;
- (NSDate*)convertDateWithTimeZone:(NSString*)timeZoneName;
- (NSDate*)convertDateBackLocalWithTimeZone:(NSString*)timeZoneName;
- (NSString*)convertToStringWithTimeZone:(NSString*)timeZoneName;
- (NSString*)convertToDescriptionWithTimeZone:(NSString*)timeZoneName;
- (NSString*)convertToHour;

@end
